<?php
// +----------------------------------------------------------------------
// | 文件目录：D:\information\phone-bill-interface-main\app\Models
// +----------------------------------------------------------------------
// | 文件名：TopUpRecordModel.php
// +----------------------------------------------------------------------
// | 文件路径：D:\information\phone-bill-interface-main\app\Models\TopUpRecordModel.php
// +----------------------------------------------------------------------
// | 文件功能： 充值记录表
// +----------------------------------------------------------------------
// | 作者：李星星
// +----------------------------------------------------------------------
// | 创建时间：2025-05-15 09:03:10
// +----------------------------------------------------------------------
namespace App\Models;

use App\Enum\TopUpRecordCode;

class TopUpRecordModel extends BaseModel
{
    protected $table = 'hf_topup_record';

    protected $primaryKey = 'record_id';

    protected $fillable = [
        'status',
        'errmsg',
        'order_number',
        'mobile',
        'product_id',
        'total_price',
        'out_trade_num',
        'title',
        'otime',
        'state'
    ];

    protected $attributes = [
        'status' => TopUpRecordCode::DEFAULT_CODE
    ];

    protected $casts = [
        'created_at' => 'datetime:Y-m-d',
        'updated_at' => 'datetime:Y-m-d',
        'otime' => 'datetime:Y-m-d'
    ];
    
}
